Ext.define('QMS.store.OrgTree', {
	extend: 'Ext.data.TreeStore',
	autoLoad: false,
	proxy: {
		type: 'ajax',
		url: 'orgTree',
		reader: {
			type: 'json',
			root: 'root'
		},
		api: {
			create: 'orgTree?do_action=create',
			read: 'orgTree?do_action=read',
			update: 'orgTree?do_action=update',
			destroy: 'orgTree?do_action=destroy',
		},
	},
	folderSort: true,
	sorters: [{
		property: 'text',
		direction: 'ASC'
	}],

});
